package com.erp.module.packPiece

import android.content.Context
import com.erp.bean.PackPieceBean
import com.erp.Interface.OnUserDataInterface

/**
 * Created by Administrator on 2018/12/14/014.
 * 作者：刘洋
 * 拼装包装计件采集接口
 */
interface PackPieceContract {
    interface PackPieceFragmentView{
        //获取拼装包装数据成功
        fun getPackPieceOk(name : String , counts :String,gangwei_name:String)

        //获取拼装包装数据失败
        fun getPackPieceNo()

        //上拉拼装包装列表成功
        fun addPackPieceOk()

        //上拉拼装包装列表失败
        fun addPackPieceNo()

        //获取到员工工号信息成功
        fun getGonghaoOK(gonghaoid: MutableList<String>,gonghaoname :  MutableList<String>)

        //获取到员工工号信息失败
        fun getGonghaoNO()

    }
    interface PackPiecePutView{
        //上传拼装包装列表成功
        fun putPackPieceOk()

        //上传拼装包装列表失败
        fun putPackPieceNo()

        //获取到员工工号信息成功
        fun getGonghaoOK(gonghaoid: MutableList<String>,gonghaoname :  MutableList<String>)

        //获取到员工工号信息失败
        fun getGonghaoNO()
    }
    interface PackPieceKP{
        //获取根据拼装包装数据
        fun getPackPiece(sousuo : FragmentPackPiece.SousuoBean)

        //上拉拼装包装列表
        fun addPackPiece()

        //上传拼装包装
        fun putPackPiece(work_staff_id : String)

        //获取工号列表
        fun getGonghao()

    }
    interface PackPieceMP{
        //获取供应材料质量列表
        fun getPackPiece(context: Context, page: Int, pagesize: Int, sousuo : FragmentPackPiece.SousuoBean, onUserDataInterface: OnUserDataInterface)
        //上传供应材料质量列表
        fun putPackPiece(context: Context,work_staff_id : String, beans : MutableList<PackPieceBean> , onUserDataInterface: OnUserDataInterface)
    }
}